<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:''
			};
		},
		onLoad(option) {
			this.id=option.id
			this.getDetail(option.id)
		},
		methods: {
			// 获取礼遇详情
			getDetail() {
				let that = this;
				let data = {
					id: that.id
				}
				that.$https('sendgoods.detail', data, '请求中...').then(res => {
					if (res.code === 1) {
						console.log('res', res)

					}
				});
			},
			// 查看物流
			onExpress(orderId) {
				let that = this;
				that.$http('order.expressList', {
					order_id: orderId
				}).then(res => {
					if (res.code === 1) {
						if (res.data.length == 1) {
							this.jump('/pages/order/express/express-detail', {
								orderId: orderId,
								expressId: res.data[0].id
							});
						} else if (res.data.length > 1) {
							this.jump('/pages/order/express/express-list', {
								orderId: orderId
							});
						} else {
							that.$u.toast('暂无包裹~');
						}
					}
				});
			},
			
		}
	}
</script>
<style>
	page {
		background-color: #ffffff !important;
	}
</style>
<style lang="scss">
	
</style>
